-- GENERATED SPELL FOR [Bluegill Forager] --


function spell0_1026(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1026', 30000, 1)
end

function spell1_1026(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1026', 550, 1)
end

function Sorts_1026(pUnit, Event)
local choix_sorts_1026 = math.random(0, 1)
if choix_sorts_1026 == 0 then
pUnit:RegisterEvent('spell0_1026', 1, 1)
end
if choix_sorts_1026 == 1 then
pUnit:RegisterEvent('spell1_1026', 1, 1)
end
end

function mob1026_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1026', math.random(1500, 3000), 1)
end

function mob1026_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1026_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1026_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1026, 1, 'mob1026_Action')
RegisterUnitEvent(1026, 2, 'mob1026_Leave')
RegisterUnitEvent(1026, 3, 'mob1026_Kill')
RegisterUnitEvent(1026, 4, 'mob1026_Die')
